<?php

class Default_BlogSuccessView extends ProjectBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		$this->setupHtml($rd);
		
		$aktPage = $rd->getParameter('page');
		$maxPages = $this->getAttribute('maxPages');
		
	if($aktPage<$maxPages-1)	
		{$paging['forward'] = $this->ro->gen('blog', array('page'=>$aktPage+1));
		$paging['end'] = $this->ro->gen('blog', array('page'=>$maxPages-1));	
		} 
	if($aktPage>0) { // zur�ck bl�ttern, nur wenn die Seite größer als 0 ist
    	$paging['back'] = $this->ro->gen('blog', array('page'=>$aktPage-1));
    	$paging['beginning'] = $this->ro->gen('blog', array('page'=>0));
    	
	}
 	else {
    $paging['back'] = false;
}

$this->setAttribute('paging', $paging);
	}
	
}

?>